import { createRouter, createWebHashHistory } from 'vue-router'
import Home from '../components/Home.vue'
import WordCloud from '../components/WordCloud.vue'
import About from '../components/About.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    component: Home
  },
  {
    path: '/wordcloud',
    name: 'wordcloud',
    component: WordCloud
  },
  {
    path: '/about',
    name: 'about',
    component: About
  }
]
// 创建路由实例
const router = createRouter({
  history: createWebHashHistory(),
  routes
});

export default router;